# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class OrderPriceProtocolVo(object):

    def __init__(self, serviceCode, region, billingType, count, timeSpan, timeUnit, networkOperator, startTime, resourceId=None, formula=None, pin=None, endTime=None):
        """
        :param resourceId: (Optional) 资源id，续费和升降配时必传，其他非必传
        :param serviceCode:  资源的类型，取值vm,disk,ip等，具体取值请在对接时联系我们
        :param region:  资源所在区域，取值cn-north-1,cn-east-1,cn-east-2,cn-south-1
        :param billingType:  计费类型，1:按配置 2:按用量 3:包年包月
        :param formula: (Optional) 资源配置项列表
        :param count:  资源数量
        :param timeSpan:  资源使用时长
        :param timeUnit:  资源使用时长类型，1:小时 2:天 3:月 4:年
        :param networkOperator:  资源网络类型，0:无 1:non-BGP 2:BGP，当资源类型是ip时，则需要填写1或者2，其他资源类型填写0
        :param pin: (Optional) 用户pin，如有优惠用户，则填写优惠用户的pin，否则不用填写
        :param startTime:  开始时间，格式：yyyy-MM-dd HH:mm:ss
        :param endTime: (Optional) 结束时间，格式：yyyy-MM-dd HH:mm:ss
        """

        self.resourceId = resourceId
        self.serviceCode = serviceCode
        self.region = region
        self.billingType = billingType
        self.formula = formula
        self.count = count
        self.timeSpan = timeSpan
        self.timeUnit = timeUnit
        self.networkOperator = networkOperator
        self.pin = pin
        self.startTime = startTime
        self.endTime = endTime
